
	

	
	SPI_WR_HX8238D(0x0001,0x6300);
	SPI_WR_HX8238D(0x0002,0x0200);//LCD driver waveform control,B/C,be influence up on crosstalk
	SPI_WR_HX8238D(0x0003,0xD164);//Power control 1,VGL,VGH
	SPI_WR_HX8238D(0x0004,0x04C7);//input data and color filer control						10011000111
	Delay_Xms(10);
	SPI_WR_HX8238D(0x0005,0x8c40);//SET Gate driver normal operation(GHN),VCIX2(XDK),GDIS,LPF,DEP,CKP,VSP,HSP,DEO,DIT,0,PWM,0,FB[2:0]
	SPI_WR_HX8238D(0x0008,0x06FF);//PWM control for extern LED driver control
	SPI_WR_HX8238D(0x000A,0x4008);//Contrast/Brightness control
	SPI_WR_HX8238D(0x000B,0xD400);//Frame cycle control
	SPI_WR_HX8238D(0x000D,0x0230);//Power control 2,SET VRC,VDD,VRH
	SPI_WR_HX8238D(0x000E,0x1200);//Power control 3,SET the	alternating	amplitude	of VCOM
	SPI_WR_HX8238D(0x000F,0x0000);//Gate scan position
	SPI_WR_HX8238D(0x0016,0x9f80);//Horizontal pixel
	SPI_WR_HX8238D(0x0017,0x2212);//set HBP and VBP porch
	SPI_WR_HX8238D(0x001E,0x00e4);//Power Control 4, set VCOM
	Delay_Xms(50);
	SPI_WR_HX8238D(0x0030,0x0000);
	SPI_WR_HX8238D(0x0031,0x0707);
	SPI_WR_HX8238D(0x0032,0x0206);
	SPI_WR_HX8238D(0x0033,0x0001);
	SPI_WR_HX8238D(0x0034,0x0105);
	SPI_WR_HX8238D(0x0035,0x0000);
	SPI_WR_HX8238D(0x0036,0x0707);
	SPI_WR_HX8238D(0x0037,0x0100);
	SPI_WR_HX8238D(0x003a,0x0502);
	SPI_WR_HX8238D(0x003b,0x0502);
